namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PLAN_PURCHASE_DETAIL")]
    public partial class PLAN_PURCHASE_DETAIL
    {
        [Key]
        [StringLength(40)]
        public string PURCHASEDETAIL_ID { get; set; }

        [StringLength(40)]
        public string PURCHASE_ID { get; set; }

        public byte? PLAN_TERM { get; set; }

        public byte? PLAN_TYPE { get; set; }

        [StringLength(40)]
        public string ECONTRACT_CODE { get; set; }

        [StringLength(40)]
        public string EXTERNAL_CODE { get; set; }

        public short? PAY_UNIT { get; set; }

        [StringLength(40)]
        public string SEND_STATION_ID { get; set; }

        [StringLength(40)]
        public string ARRIVE_STATION_ID { get; set; }

        [StringLength(40)]
        public string MATERIEL_ID { get; set; }

        [StringLength(40)]
        public string MINE_ID { get; set; }

        [StringLength(40)]
        public string SUPPLIER_ID { get; set; }

        [StringLength(40)]
        public string MININGBUREAU { get; set; }

        public short? TRANSPORT_TYPE { get; set; }

        public byte? PATH_TYPE { get; set; }

        public decimal? COALQUALITY { get; set; }

        public short? PRICE_TYPE { get; set; }

        public decimal? CONTRACTPRICE { get; set; }

        public short? SETTLE_TYPE { get; set; }

        public decimal? FREIGHT { get; set; }

        public decimal? OTHER_COST { get; set; }

        public decimal? SECOND_COST { get; set; }

        public decimal? FACTORY_PRICE { get; set; }

        public decimal? ARRIVE_STANDARD_PRICE { get; set; }

        public decimal? PLAN_COUNT { get; set; }

        public decimal? RAILWAY_QUANTITY { get; set; }

        public decimal? WAITED_AMOUNT { get; set; }

        public decimal? QNET_UPPER { get; set; }

        public decimal? QNET_LOWER { get; set; }

        public decimal? MT { get; set; }

        public decimal? VAD { get; set; }

        public decimal? S { get; set; }

        [StringLength(500)]
        public string MARK { get; set; }

        public decimal? APPROVED_COUNT { get; set; }

        public virtual PLAN_PURCHASE PLAN_PURCHASE { get; set; }

        public virtual PUB_MATERIEL PUB_MATERIEL { get; set; }

        public virtual PUB_MINE PUB_MINE { get; set; }

        public virtual PUB_STATION PUB_STATION { get; set; }

        public virtual PUB_STATION PUB_STATION1 { get; set; }

        public virtual PUB_SUPPLIER PUB_SUPPLIER { get; set; }
    }
}
